import request from '@/utils/request'

// 查询订单内商品列表
export function listShow_ordergoods(query) {
  return request({
    url: '/ordergoods/show_ordergoods/list',
    method: 'get',
    params: query
  })
}

// 查询订单内商品详细
export function getShow_ordergoods(orderId) {
  return request({
    url: '/ordergoods/show_ordergoods/' + orderId,
    method: 'get'
  })
}

// 新增订单内商品
export function addShow_ordergoods(data) {
  return request({
    url: '/ordergoods/show_ordergoods',
    method: 'post',
    data: data
  })
}

// 修改订单内商品
export function updateShow_ordergoods(data) {
  return request({
    url: '/ordergoods/show_ordergoods',
    method: 'put',
    data: data
  })
}

// 删除订单内商品
export function delShow_ordergoods(orderId) {
  return request({
    url: '/ordergoods/show_ordergoods/' + orderId,
    method: 'delete'
  })
}

// 导出订单内商品
export function exportShow_ordergoods(query) {
  return request({
    url: '/ordergoods/show_ordergoods/export',
    method: 'get',
    params: query
  })
}